package org.dong.service.Impl;

import org.dong.Mapper.UserMapper;
import org.dong.Tool.MyBatisUtil;
import org.dong.pojo.User;
import org.dong.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("userService")
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User getUser(String cardId,Integer id,String phone) {

        return userMapper.getUser(cardId,id,phone);
    }

    @Override
    public Integer addUser(User user) {
        return userMapper.addUser(user);
    }
}
